package ooday01;

public class CarTest {
    public static void main(String[] args) {
        Car gtr = new Car();
        gtr.brand = "尼桑";//成员变量赋值
        gtr.color = "白";
        gtr.price = 1000;
        gtr.start();//调方法
        gtr.run();
        gtr.stop();

        Car bmw = new Car("宝马","白",5000);//new完加参赋值
        bmw.start();//调方法
        bmw.run();
        bmw.stop();
    }
}
